package com.mljr.example.ui.icon;


import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.text.TextUtils;
import android.widget.TextView;

import com.ctakit.sdk.app.widget.image.CircleImageView;


public class Icons  {


public static void setHomeChannelIcon(String classId , TextView t, CircleImageView circleImageView){
    if(TextUtils.isEmpty(classId)){
        return;
    }
    ColorDrawable c = null;
    switch (classId){
        case "J_sao" :
            t.setText("\u626b");
            c = new ColorDrawable(Color.parseColor("#74b639"));
            circleImageView.setImageDrawable(c);
            break;

        case "J_jie" :
            t.setText("\u501f");
             c = new ColorDrawable(Color.parseColor("#ff6762"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_by" :
            t.setText("\u90ae");
             c = new ColorDrawable(Color.parseColor("#74b639"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_xiaoshuo" :
            t.setText("\u8bf4");
             c = new ColorDrawable(Color.parseColor("#ff3c3c"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_qd" :
            t.setText("\u7b7e");
             c = new ColorDrawable(Color.parseColor("#5390e9"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_yyfq" :
            t.setText("\u7528");
             c = new ColorDrawable(Color.parseColor("#ff3c3c"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_ssdr" :
            t.setText("\u8fbe");
             c = new ColorDrawable(Color.parseColor("#ffce33"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_rd" :
            t.setText("\u70ed");
             c = new ColorDrawable(Color.parseColor("#ff6762"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_game" :
            t.setText("\u6e38");
             c = new ColorDrawable(Color.parseColor("#4F89EA"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_mei" :
            t.setText("\u98df");
             c = new ColorDrawable(Color.parseColor("#ffce33"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_hcp" :
            t.setText("\u8f66");
             c = new ColorDrawable(Color.parseColor("#5390e9"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_dz" :
            t.setText("\u6bb5");
             c = new ColorDrawable(Color.parseColor("#4fc7ea"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_ti" :
            t.setText("\u989d");
             c = new ColorDrawable(Color.parseColor("#ff9a30"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_mn" :
            t.setText("\u5973");
             c = new ColorDrawable(Color.parseColor("#ff3c3c"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_video" :
            t.setText("\u89c6");
             c = new ColorDrawable(Color.parseColor("#05c2ac"));
            circleImageView.setImageDrawable(c);
            break;
        case "J_js" :
            t.setText("\u519b");
             c = new ColorDrawable(Color.parseColor("#ff9f2e"));
            circleImageView.setImageDrawable(c);
            break;

    }


}


}